package com.recruit.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
@Table(name="t_recruit")
public class Recruit {
	private Long id;
	private String title;
	private String position;//岗位
	private String requirements;//岗位要求
	private String description;//岗位描述
	private String number;//人数
	private String place;//工作地点
	private String salary;//薪资待遇
	private String mailbox;//投递简历邮箱
	private String introduction;//公司简介
	private Date publishDate;//发布日期
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	public String getTitle() {
		return title;
	}
	public String getPosition() {
		return position;
	}
	public String getRequirements() {
		return requirements;
	}
	public String getDescription() {
		return description;
	}
	public String getNumber() {
		return number;
	}
	public String getPlace() {
		return place;
	}

	public String getSalary() {
		return salary;
	}
	public String getMailbox() {
		return mailbox;
	}
	public String getIntroduction() {
		return introduction;
	}
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public Date getPublishDate() {
		return publishDate;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public void setRequirements(String requirements) {
		this.requirements = requirements;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public void setPlace(String place) {
		this.place = place;
	}

	public void setSalary(String salary) {
		this.salary = salary;
	}
	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}
	public void setMailbox(String mailbox) {
		this.mailbox = mailbox;
	}
	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
	
	
}
